package cloud.maque.querylist.dal.grpc.interfaces;

import cloud.maque.querylist.dal.grpc.conf.GrpcAnnotationValue;
import cloud.maque.framework.grpc.annotation.AutoGrpcService;

/**
 * GRPC接口示例1
 *
 * @dubbo
 */
@AutoGrpcService(server = GrpcAnnotationValue.class)
public interface DemoRpcService {

    Object demoEvent();

    /**
     * 抛出一个异常
     *
     * @return
     */
    Integer demoException(Integer a, Integer b);
}
